package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.entity.Shop;
import net.qhzw.vip.qiyu.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper extends BaseMapper<Shop> {


    /***
     * 商铺分页查询
     * @param pageAdapter
     * @return
     */
    List<Shop> findByPage(@Param("pageAdapter") PageAdapter pageAdapter,@Param("shopName") String shopName);

    /**
     * 商铺total查询
     * @return
     */
    Long totalByPage(String shopName);

    String getWxMchIdById(Long shopId);

    void insertInformation(@Param("shopId") Long shopId, @Param("shopName") String shopName);



}